<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <h:form enctype="multipart/form-data">
                <h1 class="title">
                    <a href="#" class="back" onclick="history.go(-1)"/>
                    Médico
                </h1>
                <p:messages showDetail="true" autoUpdate="true"  /> 
                <div class="row">
                    <div class="twelve columns"> 
                        <fieldset>
                            <legend> <h4 style="margin:0 0 10px 0">Dados Gerais</h4></legend>
                            <p:panel id="customerPrimary" style="background: none; border: none;" 
                                     styleClass="container_24 clearfix ">
                                <p:outputLabel value="Nome:" styleClass="grid_3"/>
                                <h:outputText styleClass="grid_20" value="#{managerSearchDoctor.doctorShow.name}"/>
                                <div class="clear"/>
                                <p:outputLabel value="Sexo:" styleClass="grid_3"/>
                                <h:outputText  styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.gender}"/>

                                <p:outputLabel value="E-mail:" styleClass="grid_4"/>
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.email}"/>
                                
                                <div class="clear"/>
                                
                                <p:outputLabel value="Telefone:" styleClass="grid_3"/>
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.phone}"/>

                                <p:outputLabel value="Celular:" styleClass="grid_4"/>
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.cellular}"/>

                            </p:panel>
                        </fieldset>
                        <fieldset>
                            <legend> <h4 style="margin:0 0 10px 0">Dados Profissionais</h4></legend>
                            <p:panel id="customerSecundary" style="background: none; border: none;" 
                                     styleClass="container_24 clearfix ">
                                <p:outputLabel  value="CBO:" styleClass="grid_3"/>
                                <h:outputText value="#{managerSearchDoctor.doctorShow.cbo.descr}" 
                                              styleClass="grid_19"/>

                                <p:outputLabel value="Conselho:" styleClass="grid_3"/>
                                <h:outputText value="#{managerSearchDoctor.doctorShow.advice}" styleClass="grid_8"/>   

                                <p:outputLabel value="Número:" styleClass="grid_4"/>
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.numberAdvice}"/>

                                <div class="clear"/>
                                <p:outputLabel value="Estado:" styleClass="grid_3"/>
                                <h:outputText value="#{managerSearchDoctor.doctorShow.country.name}" styleClass="grid_8"/>  

                            </p:panel>
                        </fieldset>
                        <fieldset>
                            <legend> <h4 style="margin:0 0 10px 0">Endereço</h4></legend>
                            <p:panel id="address" style="background: none; border: none;" 
                                     styleClass="container_24 clearfix ">

                                <p:outputLabel value="CEP:" styleClass="grid_3" />
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.address.zipcode}" />

                                <div class="clear"/>
                                <p:outputLabel value="Logradouro:" styleClass="grid_3" />
                                <h:outputText styleClass="grid_20" value="#{managerSearchDoctor.doctorShow.address.publicPark}" />
                                <div class="clear"/>
                                <p:outputLabel value="Bairro:" styleClass="grid_3" />
                                <h:outputText  styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.address.neighborhood}" />
                                
                                <p:outputLabel value="Complemento:" styleClass="grid_4" />
                                <h:outputText styleClass="grid_8"  value="#{managerSearchDoctor.doctorShow.address.complement}" />
                                <div class="clear"/>
                                
                                <p:outputLabel value="Nº:" styleClass="grid_3" />
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.address.number}" />
                                
                                <p:outputLabel  value="Cidade:" styleClass="grid_4"  />
                                <h:outputText styleClass="grid_8" value="#{managerSearchDoctor.doctorShow.address.city.name}" /> 
                            </p:panel>
                        </fieldset>
                        <div class="buttonAction">
                            <p:button href="searchdoctor.xhtml" value="Voltar"  icon="ui-icon-arrowreturnthick-1-w" />
                        </div >
                    </div>
                </div>
            </h:form>
        </ui:define>
    </ui:composition>

</html>







